package com.cwd.arm.domain.repository.impl;

import com.cwd.arm.infrastructure.dao.MsgRecipientDao;
import com.cwd.arm.infrastructure.po.MsgRecipientPo;
import com.cwd.arm.domain.entity.MsgRecipientEntity;
import com.cwd.arm.domain.repository.MsgRecipientRepository;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
* Description:消息接受者
* Created on 2022年01月15日
* @author  yan
*/
@Repository
public class MsgRecipientRepositoryImpl implements MsgRecipientRepository{

    @Autowired
    private MsgRecipientDao dao;

    private MsgRecipientPo convertToMsgRecipientPo(MsgRecipientEntity entity){
        MsgRecipientPo MsgRecipientPo = new MsgRecipientPo();
        BeanUtils.copyProperties(entity,MsgRecipientPo);
        return MsgRecipientPo;
    }

}
